<!-- HTML header for doxygen 1.8.10-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="generator" content="Doxygen 1.8.10" />
    <title>ZRDDS: StatusKind类 参考</title>
    <link href="tabs.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="jquery.js"></script>
    <script type="text/javascript" src="dynsections.js"></script>
    <link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
    <link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
    <link href="doxygen.css" rel="stylesheet" type="text/css" />
    <link href="customdoxygen.css" rel="stylesheet" type="text/css"/>
    <link href="static/css/bootstrap.css" rel="stylesheet" />
    <!-- <link href="static/css/sticky-footer-navbar.css" rel="stylesheet">
    <script type="text/javascript" src="static/js/bootstrap.js"></script> -->
    <script type="text/javascript" src="static/js/doxy-boot.js"></script>
</head>
<body>
    <div id="top">
        <!-- do not remove this div, it is closed by doxygen! -->
        <!-- end header part --><!-- 制作者 Doxygen 1.8.10 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'搜索');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>首页</span></a></li>
      <li><a href="pages.html"><span>相关页面</span></a></li>
      <li><a href="namespaces.html"><span>包</span></a></li>
      <li class="current"><a href="annotated.html"><span>类</span></a></li>
      <li><a href="examples.html"><span>示例</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="搜索" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>类列表</span></a></li>
      <li><a href="classes.html"><span>类索引</span></a></li>
      <li><a href="hierarchy.html"><span>类继承关系</span></a></li>
      <li><a href="functions.html"><span>类成员</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('classcom_1_1zrdds_1_1infrastructure_1_1_status_kind.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-static-attribs">静态 Public 属性</a> &#124;
<a href="classcom_1_1zrdds_1_1infrastructure_1_1_status_kind-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">StatusKind类 参考</div>  </div>
</div><!--header-->
<div class="contents">

<p>位域定义实体状态类型。  
 <a href="classcom_1_1zrdds_1_1infrastructure_1_1_status_kind.html#details">更多...</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-attribs"></a>
静态 Public 属性</h2></td></tr>
<tr class="memitem:a724231536b97ae57f3535efafc2e46ba"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a724231536b97ae57f3535efafc2e46ba"></a>
static final int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1zrdds_1_1infrastructure_1_1_status_kind.html#a724231536b97ae57f3535efafc2e46ba">INCONSISTENT_TOPIC_STATUS</a> = 1</td></tr>
<tr class="memdesc:a724231536b97ae57f3535efafc2e46ba"><td class="mdescLeft">&#160;</td><td class="mdescRight">QoS不匹配状态。 <br /></td></tr>
<tr class="separator:a724231536b97ae57f3535efafc2e46ba"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afbf327eba17316f575e0811026a50ab4"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="afbf327eba17316f575e0811026a50ab4"></a>
static final int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1zrdds_1_1infrastructure_1_1_status_kind.html#afbf327eba17316f575e0811026a50ab4">OFFERED_DEADLINE_MISSED_STATUS</a> = 2</td></tr>
<tr class="memdesc:afbf327eba17316f575e0811026a50ab4"><td class="mdescLeft">&#160;</td><td class="mdescRight">数据写者截止时间未满足状态类型。 <br /></td></tr>
<tr class="separator:afbf327eba17316f575e0811026a50ab4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae90c950301aa38c3eb68a30d5f7cde67"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ae90c950301aa38c3eb68a30d5f7cde67"></a>
static final int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1zrdds_1_1infrastructure_1_1_status_kind.html#ae90c950301aa38c3eb68a30d5f7cde67">REQUESTED_DEADLINE_MISSED_STATUS</a> = 4</td></tr>
<tr class="memdesc:ae90c950301aa38c3eb68a30d5f7cde67"><td class="mdescLeft">&#160;</td><td class="mdescRight">数据读者截止时间未满足状态类型。 <br /></td></tr>
<tr class="separator:ae90c950301aa38c3eb68a30d5f7cde67"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9990db8a934d9422991aa250c79426fe"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a9990db8a934d9422991aa250c79426fe"></a>
static final int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1zrdds_1_1infrastructure_1_1_status_kind.html#a9990db8a934d9422991aa250c79426fe">OFFERED_INCOMPATIBLE_QOS_STATUS</a> = 32</td></tr>
<tr class="memdesc:a9990db8a934d9422991aa250c79426fe"><td class="mdescLeft">&#160;</td><td class="mdescRight">数据写者端QoS不匹配状态类型。 <br /></td></tr>
<tr class="separator:a9990db8a934d9422991aa250c79426fe"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a48c8f2a0ca4d5132434accd51ff2c0b6"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a48c8f2a0ca4d5132434accd51ff2c0b6"></a>
static final int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1zrdds_1_1infrastructure_1_1_status_kind.html#a48c8f2a0ca4d5132434accd51ff2c0b6">REQUESTED_INCOMPATIBLE_QOS_STATUS</a> = 64</td></tr>
<tr class="memdesc:a48c8f2a0ca4d5132434accd51ff2c0b6"><td class="mdescLeft">&#160;</td><td class="mdescRight">数据读者端QoS不匹配状态类型。 <br /></td></tr>
<tr class="separator:a48c8f2a0ca4d5132434accd51ff2c0b6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa1e4c7dc6c4af3a226b0e70ee7d7ffed"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aa1e4c7dc6c4af3a226b0e70ee7d7ffed"></a>
static final int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1zrdds_1_1infrastructure_1_1_status_kind.html#aa1e4c7dc6c4af3a226b0e70ee7d7ffed">SAMPLE_LOST_STATUS</a> = 128</td></tr>
<tr class="memdesc:aa1e4c7dc6c4af3a226b0e70ee7d7ffed"><td class="mdescLeft">&#160;</td><td class="mdescRight">数据样本丢失状态类型。 <br /></td></tr>
<tr class="separator:aa1e4c7dc6c4af3a226b0e70ee7d7ffed"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5b31527bc0875e7fa1fd481d7297478b"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a5b31527bc0875e7fa1fd481d7297478b"></a>
static final int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1zrdds_1_1infrastructure_1_1_status_kind.html#a5b31527bc0875e7fa1fd481d7297478b">SAMPLE_REJECTED_STATUS</a> = 256</td></tr>
<tr class="memdesc:a5b31527bc0875e7fa1fd481d7297478b"><td class="mdescLeft">&#160;</td><td class="mdescRight">数据样本拒绝状态类型。 <br /></td></tr>
<tr class="separator:a5b31527bc0875e7fa1fd481d7297478b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2280b8a06ddc4f5cf047fb664b171a1c"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a2280b8a06ddc4f5cf047fb664b171a1c"></a>
static final int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1zrdds_1_1infrastructure_1_1_status_kind.html#a2280b8a06ddc4f5cf047fb664b171a1c">DATA_ON_READERS_STATUS</a> = 512</td></tr>
<tr class="memdesc:a2280b8a06ddc4f5cf047fb664b171a1c"><td class="mdescLeft">&#160;</td><td class="mdescRight">订阅者数据到达状态类型。 <br /></td></tr>
<tr class="separator:a2280b8a06ddc4f5cf047fb664b171a1c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6364d9d2af981e178ee2bb6be12a439a"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a6364d9d2af981e178ee2bb6be12a439a"></a>
static final int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1zrdds_1_1infrastructure_1_1_status_kind.html#a6364d9d2af981e178ee2bb6be12a439a">DATA_AVAILABLE_STATUS</a> = 1024</td></tr>
<tr class="memdesc:a6364d9d2af981e178ee2bb6be12a439a"><td class="mdescLeft">&#160;</td><td class="mdescRight">数据读者数据到达状态类型。 <br /></td></tr>
<tr class="separator:a6364d9d2af981e178ee2bb6be12a439a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8569a197703ae3876670271bef337983"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a8569a197703ae3876670271bef337983"></a>
static final int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1zrdds_1_1infrastructure_1_1_status_kind.html#a8569a197703ae3876670271bef337983">LIVELINESS_LOST_STATUS</a> = 2048</td></tr>
<tr class="memdesc:a8569a197703ae3876670271bef337983"><td class="mdescLeft">&#160;</td><td class="mdescRight">数据写者存活性状态丢失状态。 <br /></td></tr>
<tr class="separator:a8569a197703ae3876670271bef337983"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a62152762661a487342af52e0c4773426"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a62152762661a487342af52e0c4773426"></a>
static final int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1zrdds_1_1infrastructure_1_1_status_kind.html#a62152762661a487342af52e0c4773426">LIVELINESS_CHANGED_STATUS</a> = 4096</td></tr>
<tr class="memdesc:a62152762661a487342af52e0c4773426"><td class="mdescLeft">&#160;</td><td class="mdescRight">数据写者存活性改变状态类型。 <br /></td></tr>
<tr class="separator:a62152762661a487342af52e0c4773426"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7b5b67c0d65af3032210cd5c7da9b69c"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a7b5b67c0d65af3032210cd5c7da9b69c"></a>
static final int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1zrdds_1_1infrastructure_1_1_status_kind.html#a7b5b67c0d65af3032210cd5c7da9b69c">PUBLICATION_MATCHED_STATUS</a> = 8192</td></tr>
<tr class="memdesc:a7b5b67c0d65af3032210cd5c7da9b69c"><td class="mdescLeft">&#160;</td><td class="mdescRight">数据写者匹配状态类型。 <br /></td></tr>
<tr class="separator:a7b5b67c0d65af3032210cd5c7da9b69c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a37dd87846decba9b83d99ed36f223bff"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a37dd87846decba9b83d99ed36f223bff"></a>
static final int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1zrdds_1_1infrastructure_1_1_status_kind.html#a37dd87846decba9b83d99ed36f223bff">SUBSCRIPTION_MATCHED_STATUS</a> = 16384</td></tr>
<tr class="memdesc:a37dd87846decba9b83d99ed36f223bff"><td class="mdescLeft">&#160;</td><td class="mdescRight">数据读者匹配状态类型。 <br /></td></tr>
<tr class="separator:a37dd87846decba9b83d99ed36f223bff"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7abecada12eacff8cb85913886bac7c6"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a7abecada12eacff8cb85913886bac7c6"></a>
static final int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1zrdds_1_1infrastructure_1_1_status_kind.html#a7abecada12eacff8cb85913886bac7c6">STATUS_MASK_NONE</a> = 0</td></tr>
<tr class="memdesc:a7abecada12eacff8cb85913886bac7c6"><td class="mdescLeft">&#160;</td><td class="mdescRight">此掩码表明空的 <a class="el" href="classcom_1_1zrdds_1_1infrastructure_1_1_status_kind.html" title="位域定义实体状态类型。 ">StatusKind</a> 的集合。 <br /></td></tr>
<tr class="separator:a7abecada12eacff8cb85913886bac7c6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a08cb80b85c95c2fbdf183e60ac8456f3"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a08cb80b85c95c2fbdf183e60ac8456f3"></a>
static final int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1zrdds_1_1infrastructure_1_1_status_kind.html#a08cb80b85c95c2fbdf183e60ac8456f3">STATUS_MASK_ALL</a> = -1073741825</td></tr>
<tr class="memdesc:a08cb80b85c95c2fbdf183e60ac8456f3"><td class="mdescLeft">&#160;</td><td class="mdescRight">此掩码表明所有类型的 <a class="el" href="classcom_1_1zrdds_1_1infrastructure_1_1_status_kind.html" title="位域定义实体状态类型。 ">StatusKind</a> 的集合。 <br /></td></tr>
<tr class="separator:a08cb80b85c95c2fbdf183e60ac8456f3"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>位域定义实体状态类型。 </p>
<p>为获取ZRDDS底层的通信状态以及特定的事件，ZRDDS实体（数据写者、数据读者、主题等）均会维护一系列状态以通知上层用户。 状态的分类及其关联的接口如下： </p><table class="doxtable">
<tr>
<th>状态 </th><th>关联的实体 </th><th>监听器接口 </th><th>关联的QoS  </th></tr>
<tr>
<td><a class="el" href="classcom_1_1zrdds_1_1infrastructure_1_1_status_kind.html#a724231536b97ae57f3535efafc2e46ba" title="QoS不匹配状态。 ">INCONSISTENT_TOPIC_STATUS</a> </td><td>主题 </td><td>TopicListener.on_inconsistent_topic Topic.get_inconsistent_topic_status </td><td>无 </td></tr>
<tr>
<td><a class="el" href="classcom_1_1zrdds_1_1infrastructure_1_1_status_kind.html#afbf327eba17316f575e0811026a50ab4" title="数据写者截止时间未满足状态类型。 ">OFFERED_DEADLINE_MISSED_STATUS</a> </td><td>数据写者 </td><td>DataWriterListener.on_offered_deadline_missed <a class="el" href="interfacecom_1_1zrdds_1_1publication_1_1_data_writer.html#a4a682a9b422c46f115c5712400460bfd" title="获取数据写者关联的 StatusKind.OFFERED_DEADLINE_MISSED_STATUS 状态。 ">DataWriter.get_offered_deadline_missed_status</a> </td><td><a class="el" href="classcom_1_1zrdds_1_1infrastructure_1_1_deadline_qos_policy.html" title="截止时间配置。 ">DeadlineQosPolicy</a> </td></tr>
<tr>
<td><a class="el" href="classcom_1_1zrdds_1_1infrastructure_1_1_status_kind.html#a9990db8a934d9422991aa250c79426fe" title="数据写者端QoS不匹配状态类型。 ">OFFERED_INCOMPATIBLE_QOS_STATUS</a> </td><td>数据写者 </td><td>DataWriterListener.on_offered_incompatible_qos <a class="el" href="interfacecom_1_1zrdds_1_1publication_1_1_data_writer.html#ac4fc7fa058cad0ec51d086988cba3fe7" title="获取数据写者关联的 StatusKind.OFFERED_INCOMPATIBLE_QOS_STATUS 状态。 ">DataWriter.get_offered_incompatible_qos_status</a> </td><td>无 </td></tr>
<tr>
<td><a class="el" href="classcom_1_1zrdds_1_1infrastructure_1_1_status_kind.html#a8569a197703ae3876670271bef337983" title="数据写者存活性状态丢失状态。 ">LIVELINESS_LOST_STATUS</a> </td><td>数据写者 </td><td>DataWriterListener.on_liveliness_lost <a class="el" href="interfacecom_1_1zrdds_1_1publication_1_1_data_writer.html#a8fa1af78c969dfa10f80cf4c313fbd78" title="获取数据写者关联的 StatusKind.LIVELINESS_LOST_STATUS 状态。 ">DataWriter.get_liveliness_lost_status</a> </td><td><a class="el" href="classcom_1_1zrdds_1_1infrastructure_1_1_liveliness_qos_policy.html" title="数据写者存活性声明与判定配置。 ">LivelinessQosPolicy</a> </td></tr>
<tr>
<td><a class="el" href="classcom_1_1zrdds_1_1infrastructure_1_1_status_kind.html#a7b5b67c0d65af3032210cd5c7da9b69c" title="数据写者匹配状态类型。 ">PUBLICATION_MATCHED_STATUS</a> </td><td>数据写者 </td><td>DataWriterListener.on_publication_matched <a class="el" href="interfacecom_1_1zrdds_1_1publication_1_1_data_writer.html#acf8df18b64a30c983663be84056e7e33" title="获取数据写者关联的 StatusKind.PUBLICATION_MATCHED_STATUS 状态。 ">DataWriter.get_publication_matched_status</a> </td><td>无 </td></tr>
<tr>
<td><a class="el" href="classcom_1_1zrdds_1_1infrastructure_1_1_status_kind.html#ae90c950301aa38c3eb68a30d5f7cde67" title="数据读者截止时间未满足状态类型。 ">REQUESTED_DEADLINE_MISSED_STATUS</a> </td><td>数据读者 </td><td>DataReaderListener.on_requested_deadline_missed <a class="el" href="interfacecom_1_1zrdds_1_1subscription_1_1_data_reader.html#ab0b8d8eda9f3e36697832c9ee85a73ec" title="获取该数据读者关联的 StatusKind.REQUESTED_DEADLINE_MISSED_STATUS 状态。 ">DataReader.get_requested_deadline_missed_status</a> </td><td><a class="el" href="classcom_1_1zrdds_1_1infrastructure_1_1_deadline_qos_policy.html" title="截止时间配置。 ">DeadlineQosPolicy</a> </td></tr>
<tr>
<td><a class="el" href="classcom_1_1zrdds_1_1infrastructure_1_1_status_kind.html#a48c8f2a0ca4d5132434accd51ff2c0b6" title="数据读者端QoS不匹配状态类型。 ">REQUESTED_INCOMPATIBLE_QOS_STATUS</a> </td><td>数据读者 </td><td>DataReaderListener.on_requested_incompatible_qos <a class="el" href="interfacecom_1_1zrdds_1_1subscription_1_1_data_reader.html#a9e415da318b957b91e45f8866d70d69f" title="获取该数据读者关联的 StatusKind.REQUESTED_INCOMPATIBLE_QOS_STATUS 状态。 ">DataReader.get_requested_incompatible_qos_status</a> </td><td>无 </td></tr>
<tr>
<td><a class="el" href="classcom_1_1zrdds_1_1infrastructure_1_1_status_kind.html#aa1e4c7dc6c4af3a226b0e70ee7d7ffed" title="数据样本丢失状态类型。 ">SAMPLE_LOST_STATUS</a> </td><td>数据读者 </td><td>DataReaderListener.on_sample_lost <a class="el" href="interfacecom_1_1zrdds_1_1subscription_1_1_data_reader.html#a0dfba582811e5b21b4c04935bca00304" title="获取该数据读者关联的 StatusKind.SAMPLE_LOST_STATUS 状态。 ">DataReader.get_sample_lost_status</a> </td><td><a class="el" href="classcom_1_1zrdds_1_1infrastructure_1_1_history_qos_policy.html" title="历史数据数据实例队列配置。 ">HistoryQosPolicy</a> <a class="el" href="classcom_1_1zrdds_1_1infrastructure_1_1_resource_limits_qos_policy.html" title="资源限制配置。 ">ResourceLimitsQosPolicy</a> </td></tr>
<tr>
<td><a class="el" href="classcom_1_1zrdds_1_1infrastructure_1_1_status_kind.html#a5b31527bc0875e7fa1fd481d7297478b" title="数据样本拒绝状态类型。 ">SAMPLE_REJECTED_STATUS</a> </td><td>数据读者 </td><td>DataReaderListener.on_sample_rejected <a class="el" href="interfacecom_1_1zrdds_1_1subscription_1_1_data_reader.html#ab4983ecb70ceca199635f490328595fb" title="获取该数据读者关联的 StatusKind.SAMPLE_REJECTED_STATUS 状态。 ">DataReader.get_sample_rejected_status</a> </td><td><a class="el" href="classcom_1_1zrdds_1_1infrastructure_1_1_history_qos_policy.html" title="历史数据数据实例队列配置。 ">HistoryQosPolicy</a> <a class="el" href="classcom_1_1zrdds_1_1infrastructure_1_1_resource_limits_qos_policy.html" title="资源限制配置。 ">ResourceLimitsQosPolicy</a> </td></tr>
<tr>
<td><a class="el" href="classcom_1_1zrdds_1_1infrastructure_1_1_status_kind.html#a62152762661a487342af52e0c4773426" title="数据写者存活性改变状态类型。 ">LIVELINESS_CHANGED_STATUS</a> </td><td>数据读者 </td><td>DataReaderListener.on_liveliness_changed <a class="el" href="interfacecom_1_1zrdds_1_1subscription_1_1_data_reader.html#a2cf70c34774726dc5b08797bffd01a61" title="获取该数据读者关联的 StatusKind.LIVELINESS_CHANGED_STATUS 状态。 ">DataReader.get_liveliness_changed_status</a> </td><td>DDS_LivelinessQosPolicy </td></tr>
<tr>
<td><a class="el" href="classcom_1_1zrdds_1_1infrastructure_1_1_status_kind.html#a37dd87846decba9b83d99ed36f223bff" title="数据读者匹配状态类型。 ">SUBSCRIPTION_MATCHED_STATUS</a> </td><td>数据读者 </td><td>DataReaderListener.on_subscription_matched <a class="el" href="interfacecom_1_1zrdds_1_1subscription_1_1_data_reader.html#a291c438cdb85e28255df906ef9582066" title="获取该数据读者关联的 StatusKind.SUBSCRIPTION_MATCHED_STATUS 状态。 ">DataReader.get_subscription_matched_status</a> </td><td>无 </td></tr>
</table>
<p>获取数据读者的非数据状态（除 <a class="el" href="classcom_1_1zrdds_1_1infrastructure_1_1_status_kind.html#a6364d9d2af981e178ee2bb6be12a439a" title="数据读者数据到达状态类型。 ">StatusKind.DATA_AVAILABLE_STATUS</a> ）的方式如下：</p><ol type="1">
<li>用户通过数据读者监听器并设置想要获取的状态的掩码来监听该状态，ZRDDS在检测到该状态变化时将通过监听器的相应方法回调用户。</li>
<li>用户通过主动调用数据读者的相应方法查询该状态。</li>
<li>同步等待该状态：<ol type="a">
<li>用户调用 DataReader.get_status_condition 获取关联的 <a class="el" href="interfacecom_1_1zrdds_1_1infrastructure_1_1_status_condition.html" title="实体状态条件，该条件用于获取实体状态改变。 ">StatusCondition</a> ；</li>
<li>调用 <a class="el" href="interfacecom_1_1zrdds_1_1infrastructure_1_1_status_condition.html#a1682ff21b41c424ed0b97d549b86defe" title="以掩码的方式设置用户关联的状态。 ">StatusCondition.set_enabled_statuses</a> (想要获取的状态的掩码)方法设置关心该状态；</li>
<li>调用 <a class="el" href="classcom_1_1zrdds_1_1infrastructure_1_1_wait_set.html#a38e132595b26a01a13806291dde45155" title="将指定的条件加入到该等待集合中。 ">WaitSet.attach_condition</a> 方法将步骤a中获取到的 <a class="el" href="interfacecom_1_1zrdds_1_1infrastructure_1_1_status_condition.html" title="实体状态条件，该条件用于获取实体状态改变。 ">StatusCondition</a> 附加到一个 <a class="el" href="classcom_1_1zrdds_1_1infrastructure_1_1_wait_set.html" title="该类型抽象等待条件 条件-等待 。 ">WaitSet</a> 对象上，并调用 <a class="el" href="classcom_1_1zrdds_1_1infrastructure_1_1_wait_set.html#ac7e7f0bc0fb5503de8837c324533d0d1" title="阻塞等待等待集合中的条件处于触发状态。 ">WaitSet.wait</a> 方法阻塞等待该状态的发生;</li>
<li>ZRDDS在检测到该状态变化时将解开 <a class="el" href="classcom_1_1zrdds_1_1infrastructure_1_1_wait_set.html#ac7e7f0bc0fb5503de8837c324533d0d1" title="阻塞等待等待集合中的条件处于触发状态。 ">WaitSet.wait</a> 方法阻塞，此时用户通过方法2获取该状态。</li>
</ol>
</li>
</ol>
<p>获取数据写者的状态的方式如下：</p><ol type="1">
<li>用户通过数据写者监听器并设置想要获取的状态的掩码来监听该状态，ZRDDS在检测到该状态变化时将通过监听器的相应方法回调用户。</li>
<li>用户通过主动调用数据写者的相应方法查询该状态。</li>
<li>同步等待该状态：<ol type="a">
<li>用户调用 DataWriter.get_status_condition 获取关联的 <a class="el" href="interfacecom_1_1zrdds_1_1infrastructure_1_1_status_condition.html" title="实体状态条件，该条件用于获取实体状态改变。 ">StatusCondition</a> ；</li>
<li>调用 <a class="el" href="interfacecom_1_1zrdds_1_1infrastructure_1_1_status_condition.html#a1682ff21b41c424ed0b97d549b86defe" title="以掩码的方式设置用户关联的状态。 ">StatusCondition.set_enabled_statuses</a> (想要获取的状态的掩码)方法设置关心该状态；</li>
<li>调用 <a class="el" href="classcom_1_1zrdds_1_1infrastructure_1_1_wait_set.html#a38e132595b26a01a13806291dde45155" title="将指定的条件加入到该等待集合中。 ">WaitSet.attach_condition</a> 方法将步骤a中获取到的 <a class="el" href="interfacecom_1_1zrdds_1_1infrastructure_1_1_status_condition.html" title="实体状态条件，该条件用于获取实体状态改变。 ">StatusCondition</a> 附加到一个 <a class="el" href="classcom_1_1zrdds_1_1infrastructure_1_1_wait_set.html" title="该类型抽象等待条件 条件-等待 。 ">WaitSet</a> 对象上，并调用 <a class="el" href="classcom_1_1zrdds_1_1infrastructure_1_1_wait_set.html#ac7e7f0bc0fb5503de8837c324533d0d1" title="阻塞等待等待集合中的条件处于触发状态。 ">WaitSet.wait</a> 方法阻塞等待该状态的发生;</li>
<li>ZRDDS在检测到该状态变化时将解开 <a class="el" href="classcom_1_1zrdds_1_1infrastructure_1_1_wait_set.html#ac7e7f0bc0fb5503de8837c324533d0d1" title="阻塞等待等待集合中的条件处于触发状态。 ">WaitSet.wait</a> 方法阻塞，此时用户通过方法2获取该状态。 </li>
</ol>
</li>
</ol>
</div><hr/>该类的文档由以下文件生成:<ul>
<li>StatusKind.java</li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- HTML footer for doxygen 1.8.10-->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><b>com</b></li><li class="navelem"><b>zrdds</b></li><li class="navelem"><a class="el" href="namespacecom_1_1zrdds_1_1infrastructure.html">infrastructure</a></li><li class="navelem"><a class="el" href="classcom_1_1zrdds_1_1infrastructure_1_1_status_kind.html">StatusKind</a></li>
    <li class="footer">
      <a href="http://www.zrtechnology.com">&copy; Copyright (c) 2018 ZhenRong Technology, Inc. All rights reserved.</a>
    </li>
  </ul>
</div>
</body>
</html>
